using System.Collections.Generic;
using Framework;
using UnityEngine;
using UnityEngine.EventSystems;

public class GUIConfig : MonoBehaviour, IUGUIManagerConfig
{
    public Canvas Canvas;
    public RectTransform InstanceRoot;
    public RectTransform Root;
    public RectTransform[] Layers;
    public RectTransform Mask;
    private void Start()
    {

    }
    public Canvas GetCanvas()
    {
        return Canvas;
    }

    public Vector2 GetDesignSize()
    {
        return new Vector2(1280, 720);
    }
    public RectTransform GetInstanceRoot()
    {
        return InstanceRoot;
    }

    public Transform GetLayerContainer(int layer)
    {
        if (layer < Layers.Length)
        {
            return Layers[layer];
        }
        return Canvas.transform;

    }

    public RectTransform GetRootContainer()
    {
        return Root;
    }
}